package com.digital.smartgrow.service.expert.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.digital.smartgrow.entity.expert.ExpertChoose;
import com.digital.smartgrow.dao.expert.ExpertChooseMapper;
import com.digital.smartgrow.service.expert.ExpertChooseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 专家抽选表 服务实现类
 * </p>
 *
 * @author sunyuechao
 * @since 2022-07-18
 */
@Service
public class ExpertChooseServiceImpl extends ServiceImpl<ExpertChooseMapper, ExpertChoose> implements ExpertChooseService {

//    @Override
//    public Object getListByPage(ExpertChoosePageDTO pageDTO) {
//        Page<ExpertChoose> page = new Page<>(pageDTO.getPageNum(), pageDTO.getPageSize());
//        QueryWrapper<ExpertChoose> queryWrapper = new QueryWrapper<>();
//        queryWrapper.like(StringUtils.isNotBlank(pageDTO.getName()), "name", pageDTO.getName());
//        return this.page(page, queryWrapper);
//    }

    @Override
    public Object getInfo(Integer id) {
        return this.getById(id);
    }
}
